Update last_window only when needed
authorXan Lopez <xan@gnome.org>
Wed, 30 Sep 2009 03:45:03 +0000 (23:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 30 Sep 2009 03:45:03 +0000 (23:45 -0400)
commitf0f39c34f807dcd4775415f1b7604b9debc16c60
treec4f3c7394c8b2f72340fc1a7c636142f8021e369
parent67728ac004eff3cb2175a8c1db9bfbc749985cda
Update last_window only when needed

_gtk_tooltip_handle_event, which is called for many events in the GTK+
main loop, calls gtk_tooltip_set_last_window, which keeps a weak
reference to the last window we passed through. If the window being
set is the same than the last one there's really no need to update our
weak reference, so add a check for that and exit early.
gtk/gtktooltip.c